package
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	
	import org.osmf.display.ScaleMode;
	
	public class MusicPlayer extends Sprite
	{
		public function MusicPlayer()
		{
			this.addEventListener(Event.ADDED_TO_STAGE, onInit);
		}
		
		public	function	onInit(evt:Event):void{
			this.stage.scaleMode = StageScaleMode.NO_SCALE;
			this.stage.align = StageAlign.TOP_LEFT;
			
			Asset.init();
			
			var stageWidth:int = 310;
			
			var bg:BgPanel = new BgPanel();
			bg.x = (stageWidth - bg.width)/2;
			bg.y = 50;
			
			this.addChild(bg);
		}
	}
}